ideal and practical voltage sources